package cn.xyhelp.shop.user.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 知行币记录表
 * </p>
 *
 * @author violetfreesia
 * @since 2022-02-15
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("coin_record")
public class CoinRecord extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 交易数量
     */
    @TableField("change_number")
    private Integer changeNumber;

    /**
     * 详细描述
     */
    @TableField("description")
    private String description;

    /**
     * 交易类型
     */
    @TableField("type")
    private Integer type;

    /**
     * 剩余数量
     */
    @TableField("remain")
    private Integer remain;

    @TableField("user_id")
    private Integer userId;


}
